﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LANmine
{
    public partial class AboutForm : Form
    {
        private Language lmLang;

        /// <summary>
        /// Default constructor
        /// </summary>
        public AboutForm()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Custom constructor
        /// </summary>
        /// <param name="lmLang"></param>
        public AboutForm(Language lmLang)
            : this()
        {
            // Save Language Object
            this.lmLang = lmLang;

            // Apply language strings
            ApplyLanguage();

            // Set title label
            lblProductInfo.Text = Application.ProductName + " " + Application.ProductVersion + " - The LAN-party Management Suite";
        }

        #region Language Specifications

        private void ApplyLanguage()
        {
            this.lblDevelopers.Text = this.lmLang.GetString("about.lblDevelopers");
            this.lblInfo.Text = this.lmLang.GetString("about.lblInfo");
            this.btnClose.Text = lmLang.GetString("mteam.btnClose");
        }

        #endregion

        #region Event Handlers

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        #endregion
    }
}
